import 'dart:convert';

String jsonSafetyEncode(Map map,
    {Object? Function(Object? nonEncodable)? toEncodable}) {

  map.removeWhere((key, value) => value == null);


  return jsonEncode(map, toEncodable: toEncodable);
}
